package com.servlet;

import java.io.IOException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet(name = "annotationServlet", urlPatterns = "/sayHi.do")
public class AnnotationServlet extends HttpServlet {

  @Override
  protected void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws IOException {
    resp.getWriter().print("<h1 style='color:red'>enter doPost method of annotation servlet!</h1>");
  }
}
